package com.ccgk.logistics.service;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ccgk.common.page.PaginationVo;
import com.ccgk.logistics.domain.Container;
import com.ccgk.logistics.service.CompanyService.CompanyCriteria;

public interface ContainerService {
	
	static class ContainerCriteria{
		private Map<Integer,Object> params = new HashMap<Integer,Object>();
		
		public ContainerCriteria sizeLike(String size){
			params.put(1,size);
			return this;
		}
		
		public Map<Integer,Object> getParams(){
			return Collections.unmodifiableMap(params);
		}
	}
	
	Integer add(Container container);
	
	Container getById(int id);
	
	Container getBySize(String size);
	
	List<Container> findAll();
	
	Integer update(Container container);
	
	Integer delete(int id);

	PaginationVo<Container> findList(ContainerCriteria criteria,
			int currentPage, int pageSize);

	void batchDelete(Integer[] idIntArray);
}
